#////////////////////////////////////////////////////////////////////////////
#//
#// Author      : Luis M. de la Cruz Salas
#// Date        : Sun Apr  6 14:56:24 BST 2008
#//
#////////////////////////////////////////////////////////////////////////////

include	../tuna-cfd-rules.in

all :	convection1 convection2 convection3 convection4

####################################################
## For the approximation of the convective terms use:
##  -DWITH_Upwind_CoDi for Upwind
##  -DWITH_CDS_CoDi    for Central diferences
##  -DWITH_Quick_CoDi  for Quick 
##  -DWITH_CDS_Hay     for Central diferences using Hayase [1992]
##  -DWITH_Quick_Hay   for Quick using Hayase [1992]
####################################################

convection1: convection1.o 
	$(CXX) $< -o $@ $(LIBS)
 
convection1.o: convection1.cpp
	$(CXX) $(CXXFLAGS) -DWITH_Quick_Hay -DWITH_GNUPLOT $(INCLUDES) -c $<

convection2: convection2.o 
	$(CXX) $< -o $@ $(LIBS)

convection2.o: convection2.cpp
	$(CXX) $(CXXFLAGS) -DWITH_Quick_Hay -DWITH_GNUPLOT $(INCLUDES) -c $<

convection3: convection3.o 
	$(CXX) $< -o $@ $(LIBS)

convection3.o: convection3.cpp
	$(CXX) $(CXXFLAGS) -DWITH_Quick_Hay -DWITH_DX  $(INCLUDES) -c $<

convection4: convection4.o 
	$(CXX) $< -o $@ $(LIBS)

convection4.o: convection4.cpp
	$(CXX) $(CXXFLAGS) -DWITH_GNUPLOT  $(INCLUDES) -c $<

clean:
	/bin/rm -f *.o *.ii convection1 convection1.o convection2 convection2.o convection3 convection3.o convection4 convection4.o *~
